{% extends "base.html" %}
{% comment %}
Copyright 2010 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{% endcomment %}

{% load i18n %}
{% block content %}
<div>
  <h2>
    {% if note.hidden %}
      {% trans "Are you sure this note isn't spam?" %}
    {% else %}
      {% trans "Are you sure you want to mark this note as spam?" %}
    {% endif %}
  </h2>
  {% if note.hidden %}
    <p>By unmarking this note as spam, you will make it visible by default.</p>
  {% else %}
    <p>By marking this note as spam, you will make it hidden by default. It will still be a part of the record, but will require an extra click to view the contents of the note. Users will also be able to remove the spam mark from this note.</p>
  {% endif %}
  
  <div style="width: 462px;">
    {% include "note.html" %}
  </div>

  <p>
    <form method="post" action="/flag_note">
      {% if not note.hidden %}
        {% trans "The reason this note is being marked as spam:" %}
        <select name="reason_for_report">
          <option value="unspecified">
            {% trans "I prefer not to specify." %}</option>
          <option value="spam">
            {% trans "This note is spam." %}</option>
          <option value="inappropriate">
            {% trans "This note is inappropriate." %}</option>
          <option value="spam_received">
            {% trans "I have received spam due to this note." %}</option>
          <option value="incorrect_untrue">
            {% trans "This note is incorrect or untrue." %}</option>
          </select>
      {% endif %}
      <br/><br/>
      {{env.subdomain_field_html|safe}}
      {{captcha_html|safe}}
      <br/>
      <input type="hidden" name="id" value="{{note.record_id}}">
      <input type="hidden" name="signature" value="{{signature}}">
      <input type="submit" value="{% trans "Yes, update the note" %}">
      <input type="button" value="{% trans "Cancel" %}" onclick="history.go(-1);">
    </form>
</div>
<br/><br/>
{% endblock %}
